Prototype a sysprof helper
authorMatthias Clasen <mclasen@redhat.com>
Tue, 21 Jan 2020 18:59:12 +0000 (13:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Jan 2020 22:31:48 +0000 (17:31 -0500)
commitea17728ee5f9af0dc1ad96b4d6cbdff5f6d22831
treec516837648c6f60ccd49ca4e5935db0958e0df56
parenta6f300cefd2edfb7789e75565adb03f82a701530
Prototype a sysprof helper

This is an attempt to see how we can use sysprof data
in our tests to extract useful performance numbers.

Use it as a wrapper around any GTK+ process:

./testperf ./gtk4-widget-factory

Currently, it repeatedly runs the given commandline,
extracts the first css validation time from the resulting
syscap file, and prints out the min/max/avg of the runs
at the end.

This relies on the environment variable GTK_DEBUG_AUTO_QUIT
to cause the process to exit soon after launch.
tests/meson.build
tests/testperf.c [new file with mode: 0644]